home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2001 October / macformat-108.iso / Tutorials / Flash game tutorial / spot the difference final.swf / scripts / DefineButton2_34 / BUTTONCONDACTION on(release).as
Encoding:
Text File  |  2001-08-01  |  320 b   |  21 lines

  1. on(release){
  2.    if(Number(re3) == 0)
  3.    {
  4.       tellTarget("/3a")
  5.       {
  6.          play();
  7.       }
  8.       tellTarget("/3b")
  9.       {
  10.          play();
  11.       }
  12.       re3 = 1;
  13.       count = Number(count) + 1;
  14.       score = Number(score) + 10;
  15.    }
  16.    if(Number(count) == 5)
  17.    {
  18.       nextFrame();
  19.    }
  20. }
  21.